package com.ruoyi.project.buildexperiment.service;

import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.project.buildexperiment.domain.AddExperimentParam;
import com.ruoyi.project.buildexperiment.domain.ExperimentDto;
import com.ruoyi.project.buildexperiment.domain.ExperimentParam;
import com.ruoyi.project.buildexperiment.domain.LabDto;

import java.util.List;

public interface BuildExperimentService {
    List<ExperimentDto> selectBuildexperiment(ExperimentParam experimentParam);

    List<LabDto> selectLab(Long userId);

    AjaxResult insertExperiment(AddExperimentParam experimentParam);

    int issue(Long id);

    int deleteById(Long id);


    /*根据实验id获取实验*/
    ExperimentDto getExperimentDtoById(Long id);

    boolean updateExperiment(ExperimentDto experimentDto);

    public int deletes(String ids);


    /**
     * 判断预约的实验室是否已经布置了实验
     * @param experimentLabId
     * @return
     */
    public Long ifExits(String experimentLabId);
}
